package Framework
{
	/**
	 * ...
	 * @author Menno
	 */
	public class BaseEntity
	{
		protected var _type:String = Framework.EntityType.NORMAL;
		
		protected var _guiComponent:BaseGui;
		
		public function BaseEntity(guiObject:BaseGui = null) 
		{
			_guiComponent = guiObject;
			
			EntityRegister.registerEntity(this);
		}
		
		public function update():void
		{
			
		}

		//////////////////////////////////////////////////
		//												//
		// 				PROPERTIES						//
		//												//
		//////////////////////////////////////////////////
			
		
		public function get type():String 
		{
			return _type;
		}
		
		public function set type(value:String):void 
		{
			_type = value;
		}
		
		public function get guiComponent():BaseGui 
		{
			return _guiComponent;
		}
		
		public function set guiComponent(value:BaseGui):void 
		{
			_guiComponent = value;
		}
	}
	
}